package robot;

import img.ImgUtil;

import java.awt.image.BufferedImage;

/**
 * @description:
 * @author: 张德长 dechang.zhang@ucarinc.com
 * @date: 10:51:28 2018/11/12
 * @version:2.0
 */

public class Test {

    public static void main(String[] args) {
/*//*
/获取鼠标位置
        while(true){
            Point point = MouseInfo.getPointerInfo().getLocation();
            System.out.println(point);
            try { Thread.sleep(100); } catch (InterruptedException e) { }
        }}*//*

 */
/*
 * https://blog.csdn.net/weixin_41870171/article/details/82178045
 * 大漠
 * http://tieba.baidu.com/p/5527426594
 *
 */

        int pic = 0;
        pic++;
        String path = "src\\main\\resources\\test-data\\saved" + pic + ".png";
        BufferedImage bi = DesktopUtil.getImg();
        ImgUtil.savePic(bi, "src\\main\\resources\\test-data\\saved" + pic + ".png");

    }


}
